<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="good" varStatus="goodindex" items="${datas}">
	<tr>
		<td>
			${good.id}
			<c:if test="${goodindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td ><img src="${good.bannerurl}" alt="" width="50" height="50"></td>
		<td >${good.goodno}</td>
		<td class="keys">${good.title}</td>
		<td >${tz:formatDouble(good.oldprice)}</td>
		<td >${good.stocknum}</td>
		<td class="tmui-tips" tip="${tz:formatDate(good.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(good.createTime)}
		</td>
		<%--<td>--%>
			<%--<tz:if test="${good.deleteCode=='001'}">--%>
				<%--<tz:then><a href="javascript:void(0)" opid="${good.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>--%>
				<%--<tz:else><a href="javascript:void(0)" opid="${good.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>--%>
			<%--</tz:if>--%>
		<%--</td>--%>
		<td>
			<a href="javascript:void(0);" onclick="good.edit(this,'${good.id}')" data-opid="${good.id}" class="btn btn-default" title="修改商品基本信息">
				<i class="iconfont icon-edit"></i>编辑
			</a>
			<a href="${adminPath}/shop/good/editSpec/${good.id}"  class="btn btn-default" title="修改规格">
				<i class="iconfont icon-edit"></i>规格
			</a>
			<%--<a href="javascript:void(0);" onclick="good.edit(this,'${good.id}')" data-opid="${good.id}" class="btn btn-success" >修改</a>--%>
			<a href="${adminPath}/shop/good/editPicture/${good.id}"  data-opid="${good.id}" class="btn btn-default" title="修改详情轮播图">
				<i class="iconfont icon-edit"></i>轮播图
			</a>
			<%--<a href="javascript:void(0);" onclick="good.edit(this,'${good.id}')" data-opid="${good.id}" class="btn btn-default" title="修改分类">--%>
				<%--<i class="iconfont icon-edit"></i>分类--%>
			<%--</a>--%>


			<a href="javascript:void(0);" data-opid="${good.id}" class="btn btn-danger" onclick="tzAdmin.remove(this)">
				<i class="iconfont icon-del"></i>删除
			</a>
		</td>
	</tr>
</c:forEach>
